/**
 * Copyright (c) 2018-2028, HQY 胡庆一 (215218393@qq.com).
 * <p>
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/lgpl.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.ocm.pay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ocm.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

/**
 * 实体类
 *
 * @author HQY
 * @since 2022-01-10
 */
@Data
@TableName("ocm_pay_list")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "PayList对象", description = "PayList对象")
public class PayList extends BaseEntity {

    private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.ASSIGN_ID)
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "id")
  	private Long id;
    /**
     * 付款id 0为admin
     */
	@JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "付款id 0为admin")
    private Long payerId;

	private Integer payerType;

	private String payerName;
    /**
     * 收款id 0为admin
     */
	@JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "收款id 0为admin")
    private Long payeeId;

	private Integer payeeType;

	private String payeeName;

	@ApiModelProperty(value = "卡号:后四位")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long bankCard;
	/**
	 * 银行类型
	 */
	@ApiModelProperty(value = "银行类型")
	private String bankType;

	@ApiModelProperty(value = "银行卡主键id")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long bankCardId;
	/**
	 * 银行卡类型
	 */
	@ApiModelProperty(value = "银行卡类型")
	private String cardType;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 类型：1交易 2提现 3充值
     */
    @ApiModelProperty(value = "类型：1交易 2提现 3充值")
    private Integer type;

    private BigDecimal amount;

	private BigDecimal refund;

	@JsonSerialize(using = ToStringSerializer.class)
	private Long orderId;

	private String orderDescribe;

	public PayList(Long payerId,int payerType,String payerName, Long payeeId, int payeeType,String payeeName,BigDecimal amount, Long bankCard, String bankType, Long bankCardId, String cardType, String remark, Integer type, Long orderId, String orderDescribe) {
		this.payerId = payerId;
		this.payerType = payerType;
		this.payerName = payerName;
		this.payeeId = payeeId;
		this.payeeType = payeeType;
		this.payeeName = payeeName;
		this.amount = amount;
		this.bankCard = bankCard;
		this.bankType = bankType;
		this.bankCardId = bankCardId;
		this.cardType = cardType;
		this.remark = remark;
		this.type = type;
		this.orderId = orderId;
		this.orderDescribe = orderDescribe;
	}

	public PayList() {

	}
}
